import { useSearchParams } from 'react-router-dom';

export default function Search(){
    // 获得 查询字符串 (query string) 中的参数
    const [ query , handler ] = useSearchParams();
    console.log( handler );
	  // 获得指定名称的参数值
    let keyword = query.get( 'keyword' ) ;
    return (
      <div>keyword: {keyword}</div>
    );
}